import request from 'src/axios'

/**
 * @description 分页查询附件
 * @param { Object } params 查询参数
 * @returns Promise
 */
export const pageAnnex = (params: object) => {
  return request.get('/system/annex/page', { params })
}

/**
 * @description 删除附件
 * @param { Array<string> } ids 主键数组
 * @returns Promise
 */
export const deleteAnnex = (ids: Array<string>) => {
  return request.delete('/system/annex', { data: ids })
}
